package com.ysjy.course.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("课时考勤1")
public class AttendStatisticalDto implements Serializable {

    @ApiModelProperty(value = "学生人数")
    private int studentNum;
    @ApiModelProperty(value = "出勤人数")
    private int actualNum;
    @ApiModelProperty(value = "请假人数")
    private int leaveNum;
    @ApiModelProperty(value = "缺勤人数")
    private int absenteeNum;

    public int getActualNum() {
        return studentNum - absenteeNum - leaveNum;
    }
}
